{% extends "base_blank.volt" %}

{% block pageFooter%}
    <script type="text/javascript">
        id = {{ id }};
    </script>
    {{ javascript_include("/assets/manage/js/question/updateTag.js", false) }}
{% endblock %}

{% block pageHeader %}
<style type="text/css">
    .container, .container-fluid {
        min-width: 450px;
    }
</style>
{% endblock %}

{% block content %}
    <div class="container-fluid" id="content_box_blank">
        <div class="row">
            <div class="col-xs-12">

                <form id="form_update" class="form-horizontal" role="form" method="post" action="" target="ifr_send_file" enctype="multipart/form-data">
                    <input type="hidden" name="callback" value="parent.setFormResult">
                    <input type="hidden" name="tag_id" value="{{ id }}">
                    <div class="form-group">
                        <label for="tag_name" class="col-xs-2 control-label">名称</label>
                        <div class="col-xs-9">
                            <input type="text" class="form-control" id="tag_title" name="tag_title" value="{{ tagTitle|escape_attr }}" data-rule="required;">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="tag_name" class="col-xs-2 control-label">排序</label>
                        <div class="col-xs-9">
                            <input type="text" class="form-control" id="tag_order" name="tag_order" value="{{ tagOrder }}" data-rule="required;integer;">
                            <p class="help-block">排序规则为倒序，数字越大越靠前.</p>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-xs-12 text-center">
                            <button type="submit" class="btn btn-primary"><i class="fa fa-floppy-o fa-lg"></i> 保 存</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>

{% endblock %}